package com.lance.core.launch.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lancecong
 * @version 1.0
 * @ClassName ThreadPoolAsyncProperties
 * @DESCRIPTION TODO
 * @create 2019-06-28 22:03
 **/
@ConfigurationProperties("lance.async")
@Data
public class ThreadPoolAsyncProperties {
    /**
     * 异步核心线程数，默认：2
     */
    private int corePoolSize = 2;
    /**
     * 异步最大线程数，默认：50
     */
    private int maxPoolSize = 50;
    /**
     * 队列容量，默认：10000
     */
    private int queueCapacity = 10000;
    /**
     * 线程存活时间，默认：300
     */
    private int keepAliveSeconds = 300;
}
